<cfset this.name = "chess">
<cfset this.sessionManagement = true />

<cfset this.sessionMgmt = false />
<cfset this.clientManagement = false />
<cfset this.sessionManagement = false />
<cfset this.setClientCookies = false />

<cffunction name="onRequestStart">
	<cfif NOT StructKeyExists(application,"db") or StructKeyExists(url,"init")>
		<cfset application.db = CreateObject("component","db") />
	</cfif>
	
	<cfif NOT StructKeyExists(application,"game") or StructKeyExists(url,"init")>
		<cfset application.game = CreateObject("component","game") />
	</cfif>
	
	<cfif NOT StructKeyExists(application,"javaloader") or StructKeyExists(url,"init")>
		<cfscript>
			paths = ArrayNew(1);
			paths[1]="D:\workspace\chess_java\bin\";
			application.javaloader = createObject("component", "javaloader.JavaLoader").init(paths);
		</cfscript>
	</cfif>
</cffunction>